/*
 * ShareTestPanel.h
 *
 *  Created on: 2012-11-5
 *      Author: minhua
 */

#ifndef SHARETESTPANEL_H_
#define SHARETESTPANEL_H_

#include <QWidget>
#include <QLineEdit>
#include <QPushButton>
#include "../requester/TShareRequester.h"

class ShareTestPanel : public QWidget
{
	Q_OBJECT

// Member
private:
	QLineEdit *_idEdit;
	QPushButton *_shareButton;
	QPushButton *_unshareButton;
	TShareRequesterPointer _requester;

// Method
public:
	ShareTestPanel(QWidget *parent = 0);
	virtual ~ShareTestPanel();

// Slot
private slots:
	void shareButtonClicked();
	void unshareButtonClicked();
	void shareFinished(bool error);
	void unshareFinished(bool error);

};

#endif /* SHARETESTPANEL_H_ */
